<?PHP
// vim: set expandtab tabstop=4 shiftwidth=4:
// +----------------------------------------------------------------------+
// | SAPID: XML Sapiens Engine Demonstrator                               |
// +----------------------------------------------------------------------+
// | Author:  Max Baryshnikov aka Mephius <mb@rg.by>, 	                  |
// | Dmitry Sheiko (http://cmsdevelopment.com)		 	                  |
// | Copyright (c) 2004 Max Baryshnikov                                   |
// | http://sapid.sourceforge.net	                                      |
// +----------------------------------------------------------------------+
// | This source file is free software; you can redistribute it and/or    |
// | modify it under the terms of the GNU Lesser General Public           |
// | License as published by the Free Software Foundation; either         |
// | version 2.1 of the License, or (at your option) any later version.   |
// |                                                                      |
// | This source file is distributed in the hope that it will be useful,  |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of       |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU    |
// | Lesser General Public License for more details.                      |
// +----------------------------------------------------------------------+
// Release: 17.11.04 (dd/mm/yy)
// $Id: remind.php,v 1.2 2005/06/14 13:41:15 mephius Exp $

include ("../../etc/rc.conf.php");
$root_path = preg_replace("/usr.system.remind\.php$/is", "", $root_path);
$root_path = preg_replace("/usr.system.$/is", "", $root_path);
$root_path = preg_replace("/\/\//", "/", $root_path);
include($root_path."etc/rc.d/debug.inc.php");
if(!$default_language) $default_language="en";
if(!@include($root_path.'lang/'.$default_language.'.inc.php') ) die("Can't include ".$root_path.'lang/'.$default_language.'.inc.php');
include($root_path."kernel/vdb.lib.php");


	$vdb = new sapi_vdb();
	$ver_archive = $vdb->get_data($root_path."usr/xml/vdb/release.xml");
	if($ver_archive) { foreach($ver_archive as $curversion) {}}


	echo('
		<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
		
		<html>
		<head>
			<title>Reminder</title>
		<link rel="stylesheet" type="text/css" href="'.$http_path.'usr/system/default.css" />
		</head>
		
		<div style="position: absolute; left: 0%; top: 0%">
		<div style="padding: 0px 0px 0px 0px;">
		<table class="tpanel" style="width: 100%;" cellspacing=0 cellpadding=0>
		<tr><td class="header" style="text-align: center;"><b>'.$lang["NewReleaseHasBeenPublicated"].'</b></td></tr>
		<tr>
		<td style="padding: 20px; font-family: Verdana, Arial; text-align: center"><b>SAPID v.'.$curversion["VERSION"].'</b><br /><br />CHANGELOG:<br />'.$curversion["INFO"].'
		<br /><br /><a href="'.$curversion["DOWNLOAD"].'" target="_blank">'.$lang["Download"].'</a><br />
		<a href="'.$curversion["LINK"].'" target="_blank">'.$lang["Goto"].'</a><br />
		<form>
		<input type="button" name="close" value="'.$lang["CloseWindow"].'" onclick="window.close();" class="sapidcms_cont_btn" /> </div>
		</form>
	
	</td>
		</tr>
		<tr>
		<td class="header" align="right">&nbsp;</td>
		</tr>
		</table>
		</div>
		</div>
		</body>
		</html>

	
');	
?>